package com.zoranjoka.chordis.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.zoranjoka.chordis.Artist;
import com.zoranjoka.chordis.beans.ArtistBean;

public class MockDataArtist implements IDataArtist {

	private List<ArtistBean> artists = new ArrayList<ArtistBean>();
	
//	public MockDataArtist(){
//		addArtistBean(new ArtistBean("1", "Queens of the stone age"));
//		addArtistBean(new ArtistBean("2", "System of a down"));
//		addArtistBean(new ArtistBean("3", "The Black Keys"));
//	}
	
	public ArrayList<ArtistBean> getAllArtists() {
		return (ArrayList<ArtistBean>) artists;
	}

	public ArtistBean getArtistByName(String name) {
		for (ArtistBean ab:artists){
			if(ab.getArtistName().equals(name))
				return ab;
		}
		return null;
	}

	public Artist addArtistBean(ArtistBean ab) {
		//artists.add(ab);
		return null;
	}

	@Override
	public Artist getArtistByName(Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}

	
}
